package lambda;

import cn.hutool.core.date.DateUtil;
import lombok.Data;

import java.util.Date;

/**
 * @author jiangwz
 * @create 2019/8/27.
 */
@Data
public class Dog {

    private String name;
    private String like;
    private Date birthDate;

    public Dog(String name, String like) {
        this.name = name;
        this.like = like;
    }

    public Dog(String name, String like, Date birthDate) {
        this.name = name;
        this.like = like;
        this.birthDate = birthDate;
    }

    public Dog() {

    }

    public String getName() {
        return name;
    }

    public Dog setName(String name) {
        this.name = name;
        return this;
    }

    public String getLike() {
        return like;
    }

    public Dog setLike(String like) {
        this.like = like;
        return this;
    }

    @Override
    public String toString() {
        return "Dog{" +
                "name='" + name + '\'' +
                ", like='" + like + '\'' +
                ", birthDate=" + DateUtil.formatDateTime(birthDate) +
                '}';
    }
}
